package com.ivi.car.module.home.view.adapter;

import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ivi.car.R;
import com.ivi.car.bean.home.CarStatusInfoBean;
import java.util.List;

/**
 * Copyright
 * author zhengcheng
 * date 2018/3/7
 * describe 车辆信息状态适配器
 * history
 */

public class CarStatusInfoAdapter
    extends BaseQuickAdapter<CarStatusInfoBean.CarInfo, BaseViewHolder> {


  public CarStatusInfoAdapter(int layoutResId, @Nullable List<CarStatusInfoBean.CarInfo> data) {
    super(layoutResId, data);
  }

  @Override
  protected void convert(BaseViewHolder helper, CarStatusInfoBean.CarInfo item) {
    helper.setText(R.id.car_status_detail_tv, item.getInfoDesc());
  }
}
